﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LX.Core.Auth
{
    /// <summary>
    /// 标识持久化选项
    /// </summary>
    public class TicketPersistentOption
    {
        public static TicketPersistentOption Default;
        static TicketPersistentOption()
        {
            Default = new TicketPersistentOption(TicketPersistentType.INSESSION,0);
        }

        private TicketPersistentType type = TicketPersistentType.INSESSION;
        private int timeout = 0;

        public TicketPersistentOption(TicketPersistentType _type, int _timeout)
        {
            type = _type;
            timeout = _timeout;
        }

        public TicketPersistentType Type
        {
            get { return type; }
        }

        /// <summary>
        /// 过期时间（Minutes）分钟
        /// </summary>
        public int TimeOut
        {
            get { return timeout; }
        }
    }
}
